Primitive Class Color
Represents an RGBA or RGB color.
Components are specified in bytes. All values are clamped to the range [0, 255].
Members
r | (int) Red component. |
g | (int) Green component. |
b | (int) Blue component. |
a | (int) Alpha component (0 = invisible, 255 = opaque). |
Functions
Color(R, G, B) | |
__tostring(color) |
Members
- r
- (int) Red component.
- g
- (int) Green component.
- b
- (int) Blue component.
- a
- (int) Alpha component (0 = invisible, 255 = opaque).